<!--
  描述：家庭关系和联系人列表页
  @author tanghongjun
  @since 2020-05-14 10:48:18
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>家庭关系和联系人列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">组织关系&nbsp;&nbsp;>
        <a th:lay-href="|${SYS_MCC}/staff/list.action|">员工管理</a>&nbsp;&nbsp;>&nbsp;
        <zmn th:text="${obj.staffName}"></zmn>&nbsp;&nbsp;>&nbsp;家庭关系和联系人管理
    </blockquote>

    <div class="layui-card"
         th:with="hasDetail=${#authPermit.checkPermit('/staff/detail.action')},
         hasList=${#authPermit.checkPermit('/staff/list.action')},
         hasAddEdit=${#authPermit.checkPermit('/staff/modify/addEdit.action')},
         hasArchives=${#authPermit.checkPermit('/staff/staffarchives/addEditView.action')},
         hasContract=${#authPermit.checkPermit('/staff/staffcontract/addEditView.action')},
         hasFamily=${#authPermit.checkPermit('/staff/stafffamily/listByStaffId.action')},
         hasLeaveoffice=${#authPermit.checkPermit('/staff/staffleaveoffice/addEditView.action')},
         hasPerformance=${#authPermit.checkPermit('/staff/staffperformance/listByStaffId.action')},
         hasChangelog=${#authPermit.checkPermit('/staff/staffchangelog/list.action')},
         hasStaffRoleList=${#authPermit.checkPermit('/staff/role/list.action')},
         hasDpermitOrganizeList=${#authPermit.checkPermit('/staff/dpermit/organize/tree.action')}">

        <div th:replace="staff/_tab::tab"></div>

        <form method="post" class="layui-form" action="/staff/stafffamily/list.action">
            <input type="hidden" name="staffId" th:value="${vo.staffId}"/>
<!--            <div class="layui-form" th:include="staff/stafffamily/_query :: query "></div>-->
        </form>

        <div class="layui-card-body">
            <div th:replace="staff/stafffamily/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
<!--                        <zmn th:if="${#authPermit.checkPermit('/staff/stafffamily/addEditView.action')}">-->
                        <zmn>
                            <a th:onclick="|modifyStaffFamily('${vo.staffId}', 0);|"
                               class="layui-btn layui-btn-sm layui-btn-primary"
                                text="新增家庭关系和联系人">+新增</a>
                        </zmn>
                    </div>
                </div>


            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        plat_stafffamily_list: "staff/stafffamily/zmn.plat.stafffamily.list",
    }).use(['index', 'plat_stafffamily_list']);

</script>
</body>
</html>